//package com.mtl.article.controller;
//
//import com.mtl.article.domain.Article;
//import com.mtl.article.service.IArticleService;
//import com.mtl.common.tool.api.R;
//import com.mtl.common.tool.model.Page;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/front")
//public class FrontController {
//    @Autowired
//    private IArticleService articleService;
//    /**
//     * 分页 文章管理
//     */
//    @GetMapping("/pageBysort")
//    @ApiOperation(value = "分页", notes = "传入article", position = 2)
//    public R<Page<Article>> page(Integer page, Integer size,Integer sortid) {
//        Page<Article> pages = articleService.findBySid(page,size,sortid);
//        return R.data(pages);
//    }
//    /**
//     * 详情
//     */
//    @GetMapping("/detail")
//    @ApiOperation(value = "详情", notes = "传入article", position = 1)
//    public R<Article> detail(Integer id) {
//        Article detail = articleService.findById(id);
//        return R.data(detail);
//    }
//}
